package DAO;

public class DAOException extends Exception {

	private static final long serialVersionUID = 1L;

	private String msg;
	
	public DAOException(String msg){
		this.msg=msg;
	}
	
	public DAOException(Exception e){
		this.msg = e.getMessage();
	}
	
	public String getMessage(){
		String s="Ero de DAO: "; 
		return	s.concat(this.msg);
	}
}
